function changeNavTitle() {

    var input = document.getElementById("titleInput");

    var title = input.value;



    appApi.ui.navigation.setTitle(title,function () {

        alert("修改导航栏标题成功");

    });

}


function changeNavColor() {

    appApi.ui.navigation.setColor("nothing",function (mess) {

        alert("修改颜色成功");

    });


}


function getPhotoFormPhone() {

    appApi.device.getImage(function (error, data) {

        alert(data);

        var imageDiv = document.getElementById("imageShow");

        imageDiv.src = data;

    })


}


function sacnQRcode() {


    appApi.device.scanCode(function (data,error) {

        var text = "二维码扫描结果:" + data;

        alert(text);

    })

}
